<?php
!defined('ADMIN') && exit('Not allowed to directly view page');
#CheckPurview('temp_Other');
require_once(DEDEINC.'/datalistcp.class.php');
setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,'/');

$query = "Select * From `#@__sys_enum` where egroup like 'nativeplace' order by disorder asc, evalue asc";
$dsql->Execute('me',$query);
while($row = $dsql->getarray())
{
	$city[$row['id']] = $row;
	$city[$row['evalue']] = $row['id'];
}

$sql = "Select h.* From `#@__hospital` as h ";
$dsql->Execute('me',$sql);
while($row = $dsql->getarray())
{
	$row[cityname] = ($city[$row['yid']]['evalue']>500 && $city[$row['yid']]['evalue']%500 != 0) ? $city[$city[(int)($city[$row['yid']]['evalue']/500)*500]]['ename'].',' . $city[$row['yid']]['ename'] : $city[$row['yid']]['ename'];
	$row[recommend] = $row[recommend] ==1 ? '<p style="color:red;">推荐</p>': '';
	$asks[] = $row;
}

$dtp = new DedeTemplate();
$dtp->LoadTemplate(DEDEADMIN.'/templets/ask_hospital_main.htm');
$dtp->Display();

?>